﻿package game.alternativa.ModelViewer {
	import alternativa.engine3d.core.View;
	
	public class ModelView extends View {
		
		private var _width:int;
		private var _height:int;
		
		public function ModelView (width:int, height:int, renderToBitmap:Boolean = false, backgroundColor:uint = 0, backgroundAlpha:Number = 1, antiAlias:int = 0):void {
			this._width = Math.round(width);
			this._height = Math.round(height);
			
			super(_width, _height, renderToBitmap, backgroundColor, backgroundAlpha, antiAlias);
			this.hideLogo();
			
		}
		
		public function update():void {
			/*if (this.width != _width) {
				super.width = super.width + ((_width>this.width) ? 1 : -1);
			}
			if (this.height != _height) {
				super.height = super.height + ((_height>this.height) ? 1 : -1);
			}*/
			
		}
		
		/*public override function set width(value:Number):void {
			_width = Math.round(value);
		}
		
		public override function set height(value:Number):void {
			_height = Math.round(value);
		}*/
	}
}